﻿using System;
using System.Collections;
using System.Windows.Forms;

namespace stdCall.Resource
{
    /// <summary>
    /// 获取form中的控件，被需要控制控件的服务继承，基类
    /// </summary>
    class ResourceGet
    {
        protected static Hashtable resources = new Hashtable();


        /// <summary>
        /// 添加控件到Hashtable resources
        /// </summary>
        /// <param name="name">key</param>
        /// <param name="control">控件</param>
        public void addResource(String name,Control control)
        {
            resources.Add(name,control);
        }
    }
}
